<template>
  <div>
    <h1>elementUI测试</h1>
    <!-- 按钮案例
      1.需要引入elementUI中的样式 需要导入标签(组件)
    -->
   <el-row>
     <el-button>默认按钮</el-button>
     <el-button type="primary">主要按钮</el-button>
     <el-button type="success">成功按钮</el-button>
     <el-button type="info">信息按钮</el-button>
     <el-button type="warning">警告按钮</el-button>
     <el-button type="danger">危险按钮</el-button>
   </el-row>

   <el-row>
     <el-button plain>朴素按钮</el-button>
     <el-button type="primary" plain>主要按钮</el-button>
     <el-button type="success" plain>成功按钮</el-button>
     <el-button type="info" plain>信息按钮</el-button>
     <el-button type="warning" plain>警告按钮</el-button>
     <el-button type="danger" plain>危险按钮</el-button>
   </el-row>

   <el-row>
     <el-button round>圆角按钮</el-button>
     <el-button type="primary" round>主要按钮</el-button>
     <el-button type="success" round>成功按钮</el-button>
     <el-button type="info" round>信息按钮</el-button>
     <el-button type="warning" round>警告按钮</el-button>
     <el-button type="danger" round>危险按钮</el-button>
   </el-row>

   <el-row>
     <el-button icon="el-icon-search" circle></el-button>
     <el-button type="primary" icon="el-icon-edit" circle></el-button>
     <el-button type="success" icon="el-icon-check" circle></el-button>
     <el-button type="info" icon="el-icon-message" circle></el-button>
     <el-button type="warning" icon="el-icon-star-off" circle></el-button>
     <el-button type="danger" icon="el-icon-delete" circle></el-button>
   </el-row>

   <hr />
   开关
   <el-switch
     v-model="value"
     active-color="#13ce66"
     inactive-color="#ff4949">
   </el-switch>

   <hr />
  <!--日期格式-->
  <div class="block">
     <span class="demonstration">默认</span>
     <el-date-picker
       v-model="value1"
       type="date"
       placeholder="选择日期">
     </el-date-picker>
   </div>

   <hr />
   <!-- 评分 -->
   <div class="block">
     <span class="demonstration">默认不区分颜色</span>
     <el-rate v-model="value1"></el-rate>
   </div>
   <hr />
   <el-progress :text-inside="true" :stroke-width="26" :percentage="70"></el-progress>
   <el-progress :text-inside="true" :stroke-width="24" :percentage="100" status="success"></el-progress>
   <el-progress :text-inside="true" :stroke-width="22" :percentage="80" status="warning"></el-progress>
   <el-progress :text-inside="true" :stroke-width="20" :percentage="50" status="exception"></el-progress>
    <hr />
    <el-progress type="circle" :percentage="0"></el-progress>
    <el-progress type="circle" :percentage="25"></el-progress>
    <el-progress type="circle" :percentage="100" status="success"></el-progress>
    <el-progress type="circle" :percentage="70" status="warning"></el-progress>
    <el-progress type="circle" :percentage="50" status="exception"></el-progress>

    <hr />
    <el-dialog
      title="提示AAAA"
      :visible.sync="dialogVisible"
      width="30%">
      <span>在中间展现具体的内容即可!!!!!</span>
      <span slot="footer" class="dialog-footer">
        <el-button @click="dialogVisible = false">取 消</el-button>
        <el-button type="primary" @click="dialogVisible = false">确 定</el-button>
      </span>
    </el-dialog>

    <!-- 富文本编辑器 -->
    <quill-editor ref="myQuillEditor">
    </quill-editor>

    <!-- 分割线 -->
    <hr />

    <!-- 文件上传组件
      action: 指定具体上传的地址信息
      name:   表示文件上传的属性名称   后端接收参数与之对应. 默认值file
      on-preview	点击文件列表中已上传的文件时的钩子	function(file)	—	—
      on-remove	文件列表移除文件时的钩子	function(file, fileList)	—	—
      on-success	文件上传成功时的钩子	function(response, file, fileList)
      drag      是否拖拽
      multiple  是否支持多选
    -->
    <el-upload
      class="upload-demo"
      action="https://jsonplaceholder.typicode.com/posts/"
      :on-preview="handlePreview"
      :on-remove="handleRemove"
      :file-list="fileList"
      drag
      multiple
      list-type="picture">
      <el-button size="small" type="primary">点击上传</el-button>
      <div slot="tip" class="el-upload__tip">只能上传jpg/png文件，且不超过500kb</div>
    </el-upload>







  </div>
</template>

<script>
  export default {
    data() {
      return {
        //控制对话框是否展现 展现:true  不展现false
        dialogVisible: true
      }
    },
    methods: {

    }
  }
</script>

<style>
</style>
